<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Registration Confirmation</title>
</head>

<body>
<?php
include("conn.php");
session_start();
if($_POST['pass']!=$_POST['pass1'])
{
$_SESSION['fname']=$_POST['fname'];
$_SESSION['lname']=$_POST['lname'];
$_SESSION['user']=$_POST['user'];
$_SESSION['sex']=$_POST['sex'];
header("Location: register.php");
}
$s="insert into users values('', now(), '$_POST[fname]', '$_POST[lname]', '$_POST[sex]', password('$_POST[pass]'),  '$_POST[user]' )";
if(mysql_query($s,$conn))
{
print("<strong>Registration Was Successfull, <a href=login.php>Click Here To Sign In</a>");	
}else
{
print("<strong>Something Went Wrong Registration Was Not Successfull!! <a href=register.php>Try Again</a> or Contact System Administrator</strong>");	
}
?>
</body>
</html>